// Script to open the vehicle store.

// Should never be run on a dedicated server
if (isDedicated) exitWith {};
if (isNull player) exitWith {};

disableSerialization;
_uid = getPlayerUID player;
_currentPoints = pointsLogic getVariable [_uid, 0];

_handle = CreateDialog "SXP_Store_Dialog";
//_display = findDisplay 554000;
_display = uiNamespace getVariable "TAG_SXP_VehicleStore";
_pointsText = _display displayCtrl 555000;
_textString = format ["You currently have %1 points", _currentPoints];
_pointsText ctrlSetText _textString;